package com.mapper;  
 2  
 3  
 4 import com.domain.Book;  
 5 import org.apache.ibatis.annotations.Select;  
 6 import org.springframework.stereotype.Component;  
 7  
 8 /**  
 9 * @author JXY  
 10 * @description 针对表【tb_book】的数据库操作Service实现  
 11 * @createDate 2024-12-10 14:41:22  
 12 * @Entity com.domain.Book  
 13 */  
 14 @Component  
 15 public interface BookMapper {  
 16 @Select("select * from tb_book where id = #{id}")  
 17 public Book findBookById(Integer id);  
 18 }  
 19  
 20  
 21  
 22  
 23 
